<extend name="layout/admin" />
<block name="title"><title>订单详情页</title></block>
<block name="content">
<style type="text/css">
	#order-info{border:1px solid red;}
</style>
	<div class="col-md-12 graphs">
	    <div class="xs">
	  		<h3>订单详情</h3>
			<div class="bs-example4" data-example-id="simple-responsive-table">
			<div class="bg-primary" style="padding:7px 20px 29px;">
	            <div class="pull-left">订单号: {$res1.oid}</div>
	       		<div class="pull-right col-xs-offset-1">下单时间: {:date('Y年m月d日 H:i:s',$res1['otime'])} 
	       		</div>
	        </div>
			<div class="goods-total" style="border:solid 1px #ddd;">
				<ul class="list-unstyled" style="padding:10px">
					<li>
						<span class="text">客户姓名：</span><span class="txt">{$res1.rec}</span>
					</li>
					<li>
						<span class="text">联系方式：</span><span class="txt">{$res1.tel}</span>
					</li>
					<li>
						<span class="text">客户地址：</span><span class="txt">{$res1.addr}</span>
					</li>
				</ul>
			</div>
			    <div class="table-responsive">
			      <table class="table table-bordered">
			        <thead>
			          <tr>
			            <th>商品图片</th>
			            <th>商品名称</th>
			            <th>商品规格</th>
			            <th>购买单价</th>
			            <th>数量</th>
			            <th>小计</th>
			          </tr>
			        </thead>
			        <tbody>
			        <foreach name="res" item="vo" >
			          <tr>
			            <td scope="row"><img src="__ROOT__/Public/Uploads/goods/{$vo['goods']['pic']}" alt=""></td>
			            <td>{$vo['goods']['gname']}</td>
			            <td>{$vo['goods']['size']}</td>
			            <td>{$vo['buyprice']}</td>
			            <td>{$vo['buycnt']}</td>
			            <td>{:number_format($vo['buyprice']*$vo['buycnt'],2)}</td>
			          </tr>
			        </foreach>
			        </tbody>
			        	<td>买家留言</td>
			        	<td colspan="5">{$res1.umsg}</td>
			        <tfoot>
			        </tfoot>
			      </table>
					<div class="goods-total pull-right">
						<ul class="list-unstyled">
							<li>
								<span class="text">商品数量：</span>
								<span class="txt">{:count($res)}</span>
							</li>
							<li>
								<span class="text">商品总额：</span>
								<span class="txt">¥{$res1.ormb}</span>
							</li>
							<li>
								<span class="text">运&#12288;&#12288;费：</span>
								<span class="txt">¥0.00</span>
							</li>
							<li class="ftx-01">
								<span class="text">实付总额：</span>
								<span class="txt count">¥{$res1.ormb}</span>
							</li>
						</ul>
					</div>
			    </div>
		  	</div>
  		</div>
   </div>
</block>